#include "SelectRegionControl.h"



Ptr< SelectRegion > SelectRegionControl::createRectRegion (QRect region)
{
  Ptr< SelectRegion > pSelectRegion = new SelectRegion (region);
  Ptr< QImage > pSelectMask = pSelectRegion->getMask ();
  for (int v = 0; v < pSelectMask->height (); ++v)
    memset (pSelectMask->scanLine (v), 255, pSelectMask->bytesPerLine ());
  return pSelectRegion;
}
